<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
  // if判断
  /*if () {

  } else if () {

  } else {

  }*/

  // while循环
  /*while () {

  }

  do {

  } while()*/

  // for循环
  for (let i = 0; i < 100; i++) {

  }

  // forEach
  const arr = [11, 12, 15, 11 , 55, 55];
  arr.forEach((value, index, array) => {
      console.log(value, index, array)
  })

  // for...in
  for (let key in arr) {
      if (arr.hasOwnProperty(key)) {
          console.log(arr[key])
      }
  }

  // for...of
  console.log('---<>')
  for (let data of arr) {
      console.log(data)
  }

</script>
</body>
</html>